package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.mapper.RizhiMapper;
import com.jiyun.model.xitong.Rizhi;
import com.jiyun.service.RizhiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RizhiServiceImpl extends ServiceImpl<RizhiMapper, Rizhi> implements RizhiService {
    @Autowired
    private RizhiMapper rizhiMapper;


    @Override
    public Page<Rizhi> findAll(Integer current, Integer size, Rizhi rizhi) {
        Page<Rizhi> rizhiPage = new Page<>(current, size);
        rizhiPage=rizhiMapper.findAll(rizhiPage, rizhi);
        return rizhiPage;
    }
}
